
<?php
require_once dirname(__FILE__) . "/../PUB/lib/simplepie/simplepie.inc";
include_once dirname(__FILE__) . "/../PUB/lib/simplepie/idn/idna_convert.class.php";

echo "test1";
$simplepie=new SimplePie();
echo "test5";
$simplepie->set_feed_url('http://news.google.com.tw/news?pz=1&cf=all&ned=tw&hl=zh-TW&output=rss');//http://feeds.feedburner.com/Qmag
echo "test10";
$simplepie->init();
echo "test15";
echo '<h1>'.$simplepie->get_title().'</h1>';
foreach ($simplepie->get_items() as $item){
    echo "test11";
    echo '<h2><a href="'.$item->get_permalink().'">'.$item->get_title().'</a></h2>';
    echo '<p>'.$item->get_content().'</p>';
}
echo "test20";
?>